<?php
namespace Leads\Model\Entity;

class Leads
{
	protected $id;
	protected $fullname;
	protected $companyname;
	protected $status;
	protected $userid;
	protected $owner;
	

	public function exchangeArray($data)
	{
		$this->id = (isset($data['id'])) ? $data['id'] : null;
		$this->fullname= (isset($data['fullname'])) ? $data['fullname'] : null;
		$this->companyname = (isset($data['companyname'])) ? $data['companyname'] : null;
		$this->status= (isset($data['status'])) ? $data['status'] : null;
		$this->userid= (isset($data['userid'])) ? $data['userid'] : null;
		$this->owner= (isset($data['owner'])) ? $data['owner'] : null;
	}

	
	public function __construct(array $options = null) {
		if (is_array($options)) {
			$this->setOptions($options);
		}
	}
	/*
	public function __set($name, $value) {
	$method = 'set' . $name;
	if (!method_exists($this, $method)) {
		throw new Exception('Invalid Method');
	}
	$this->$method($value);
	}
	
	public function __get($name) {
	$method = 'get' . $name;
	if (!method_exists($this, $method)) {
		throw new Exception('Invalid Method');
	}
	return $this->$method();
	}
	
	public function setOptions(array $options) {
	$methods = get_class_methods($this);
	foreach ($options as $key => $value) {
		$method = 'set' . ucfirst($key);
		if (in_array($method, $methods)) {
			$this->$method($value);
		}
	}
	return $this;
	}
	*/
	public function getId() {
		return $this->_id;
	}
	public function setId($id) {
		$this->_id = $id;
		return $this;
	}
	
	public function getFullname() {
		return $this->_fullname;
	}
	public function setFullname($fullname) {
		$this->_fullname= $fullname;
		return $this;
	}
	
	public function getCompanyname() {
		return $this->_companyname;
	}
	public function setCompanyname($companyname) {
		$this->_companyname= $companyname;
		return $this;
	}
	
	public function getStatus() {
		return $this->_status;
	}
	public function setStatus($status) {
		$this->_status= $status;
		return $this;
	}
	
	public function getUserid() {
		return $this->_userid;
	}
	public function setUserid($userid) {
		$this->_userid= $userid;
		return $this;
	}
	
	public function getOwner() {
		return $this->_owner;
	}
	public function setOwner($owner) {
		$this->_owner= $owner;
		return $this;
	}
	

}
?>